import pytest
import subprocess #类似于os，但是比os更稳定
from common.log_util import *
if __name__ == '__main__':
    pytest.main()
    try:
        subprocess.check_call('allure generate ./reports/temp -o ./reports/report --clean',shell=True)
    except subprocess.CalledProcessError as e:
        logger.error(f'生成报告出错{e}')
